package design.chain;

/**
 * 责任链模式
 */
abstract class Handler {
    protected Handler nextHandler;
    public void setNextHandler(Handler nextHandler){
        this.nextHandler = nextHandler;
    }
    public abstract void handleRequest(int request);
}
